package kr.ac.jejuuniv.repository;

import java.sql.ResultSet;
import java.sql.SQLException;

import kr.ac.jejuuniv.model.User;

import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;

@Component
public class UserRowMapper implements RowMapper<User> {

	public User mapRow(ResultSet rs, int rowNum) throws SQLException {
		return new User(rs.getString("id"), rs.getString("name"), rs.getString("password"));
	}

}
